RtSleepEx
RtSleepEx suspends the current thread for the specified time.
Syntax
DWORD RtSleepEx( DWORD dwMilliseconds BOOL bAlertable );
Parameters
dwMilliseconds
The time interval for which execution is to be suspended, in milliseconds.
A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution.
A value of INFINITE indicates that the suspension should not time out.
bAlertable
Ignored. The function does not return until the period specified in dwMilliseconds has elapsed.
Return Value
The return value is zero if the specified time interval expired.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Rtapi.h |
Library | RtApi.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also